package com.catl.plc.master;

import org.apache.plc4x.java.PlcDriverManager;

/**
 * @Description TODO
 * @ClassName Plc4jMeta
 * @Date 2022/1/17 21:52
 * @Author 王东平
 */
public class Plc4jMaster {
    private String ip;
    private int port;
    private int timeout = 8000;
    private PlcDriverManager plcDriverManager;

    public Plc4jMaster() {
    }

    public Plc4jMaster(String ip, int port, int timeout, PlcDriverManager plcDriverManager) {
        this.ip = ip;
        this.port = port;
        this.timeout = timeout;
        this.plcDriverManager = plcDriverManager;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public PlcDriverManager getPlcDriverManager() {
        return plcDriverManager;
    }

    public void setPlcDriverManager(PlcDriverManager plcDriverManager) {
        this.plcDriverManager = plcDriverManager;
    }
}
